<?php
if(array_key_exists('s', $_REQUEST))
{
	if(true || array_key_exists('curl', $_REQUEST))
	{
        echo 'curl method';
		$ch = curl_init();
		
		curl_setopt($ch, CURLOPT_URL, $_REQUEST['s']);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_HEADER, 0);
		
		$output = curl_exec($ch);
	
		curl_close($ch);
		echo $output;
	}
	else
    {
        //echo file_get_contents($_REQUEST['s']);
    }
}
else
{
	echo 'no server(s) specifiled!';
}
?>